#ifndef NEWPASSWORDDIALOG_H
#define NEWPASSWORDDIALOG_H

#include <QWidget>
#include <QDialog>

namespace Ui {
class NewPasswordDialog;
}

class NewPasswordDialog : public QDialog
{
    Q_OBJECT

public:
    explicit NewPasswordDialog(QWidget *parent = nullptr);
    ~NewPasswordDialog();

    QString getPassword();
private:
    bool checkPasswordEdit();

    QString passwordValid(const QString& password);
private slots:
    void onSubmitBtnClicked();
    void onEditingFinished();

private:
    Ui::NewPasswordDialog *ui;
    QString newPassword;
};

#endif // NEWPASSWORDDIALOG_H
